import 'package:flutter_model_package/parse_base.dart';
import 'package:flutter_model_package/student.dart';
import 'package:parse_server_sdk/parse_server_sdk.dart';

class StudentSubscription extends MSParseBase {
  StudentSubscription() : super("StudentSubscription");

  StudentSubscription.cloe() : this();

  @override
  StudentSubscription clone(Map<String, dynamic> map) =>
      StudentSubscription.cloe()..fromJson(map);

  QueryBuilder<StudentSubscription> forStudent(Student student) {
    return QueryBuilder(this)
      ..whereEqualTo("student", student)
      ..includeObject(["service.category", "student.branch"]);
  }
}
